package com.crane.oss.school.bean.request.teacher;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2022年03月26日 14时24分54秒
 */
@ApiModel(description = "新增老师参数")

@Getter
@Setter
@ToString
public class AddTeacherReq implements Serializable {
	
	private static final long serialVersionUID = -8820840651458125740L;

    @ApiModelProperty(value = "老师姓名", name = "name")
    @Size(min = 1, max = 255, message = "请输入合适长度的姓名")
    @NotNull(message = "老师姓名不能为空")
    private String name;
    
    @ApiModelProperty(value = "账号", name = "account")
    @Size(max = 255, message = "账号长度超长")
    private String account;
    
    @ApiModelProperty(value = "手机号码", name = "phone")
    @Size(min = 11, max = 11, message = "请输入正确的手机号码")
    @NotNull(message = "手机号码不能为空")
    private String phone;
    
    @ApiModelProperty(value = "性别 0 男  1女", name = "sex")
    private Integer sex;

    @ApiModelProperty(value = "学校id", name = "partyId", hidden = true)
    private Long partyId;

    @ApiModelProperty(value = "校区id", name = "schoolId")
    private Long schoolId;

    @ApiModelProperty(value = "类型 0其他  1体育老师", name = "type")
    private Integer type;

    @ApiModelProperty(value = "任教班级", name = "classesIds")
    private List<Long> classesIds;
    
    @ApiModelProperty(value = "系统用户id", name = "createUserId", hidden = true)
    private Long createUserId;
}
